package com.pda.gongpin.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.pda.gongpin.R;
import com.pda.gongpin.bean.ShipmentsListBean;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;

import java.util.List;

public class ShipmentsListAdapter extends BaseAdapter<ShipmentsListBean> {
    public ShipmentsListAdapter(int layoutResId, @Nullable List<ShipmentsListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ShipmentsListBean item) {
        super.convert(helper, item);
        helper.setText(R.id.tv_storageBinId,item.getOriginOrderNum());
        helper.setText(R.id.tv_pallet,"货主：    "+item.getOwnerCode());
        helper.setText(R.id.tv_waitInNum,"往来单位："+item.getPartner());
        helper.setText(R.id.tv_state,item.getDeliveryStatusName());
    }
}
